package com.orkhonsoft.tengrinshar.chat.common;

public enum RestCode {
	OK(0,"ok"),
	UNKNOWN_ERROR(1,"system.unknownError"),
	TOKEN_INVALID(2,"token.invalid"),
	USER_NOT_EXIST(3,"user.notExist"),
	USER_EXCEPTION(507, "user.exception"),
	WRONG_PAGE(10100,"system.wrongPage"),
	LACK_PARAMS(10101,"system.lackParams"),
	DATA_NOT_FOUND(10102, "system.dataNotFound"),
	DOWNLOAD_FIALD(1111,"system.downloadFaild"),
	NOT_ALLOW_APPLY_YOURSELF(10103, "apply.notAllowedApplyYourselft"),
	FRIEND_EXIST(10104, "FRIEND_EXIST");


	public final int code;
	public final String msg;
	
	private RestCode(int code,String msg){
		this.code = code;
		this.msg = msg;
	}

}
